<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/14 0014
 * Time: 15:50
 */
namespace plugins\qbt_wx_os\model;//Demo插件英文名，改成你的插件英文就行了
use think\Model;
class WxOsMenuModel extends Model{
    protected $name = 'wx_os_menu';

    public function add_data($data){
        return $this->insertGetId($data);
    }

    public function data_info($where){
        return $this->where($where)->find();
    }

    public function data_field($field,$where){
        return $this->field($field)->where($where)->find();
    }

    public function data_list($where){
        return $this->where($where)->select()->toArray();
    }

    public function update_data($where,$data){
        return $this->where($where)->update($data);
    }

    public function del_data($where){
        return $this->where($where)->delete();
    }


}